# File: World.py
# Copyright 2010 
# Author: Andrew Dorrycott
# License: GNU Lesser General Public License
# Original Repository: http://code.google.com/p/bobthezombie/

import sys
import pygame
import random
import datetime
import math

from Standard import WorldObject, IMAGES_WORLD, IMAGES_BOUNDARY

class World(WorldObject):
    def __init__(self, x, y, engine, view_image = IMAGES_WORLD, collision_image = IMAGES_BOUNDARY):
        WorldObject.__init__(self, x, y, engine, view_image, IMAGES_BOUNDARY)
        
        if self.engine.show_world_boundaries_debug:
            self.image.set_alpha(255) # For testing purpose
    
    def MoveSouth(self, speed):
        WorldObject.MoveSouth( self, speed )
    
    def MoveNorth(self, speed):
        WorldObject.MoveNorth( self, speed )
    
    def MoveWest(self, speed):
        WorldObject.MoveWest( self, speed )
    
    def MoveEast(self, speed):
        WorldObject.MoveEast( self, speed )
    
    def WillCollideWithBoundariesAt(self):
        """ Force children to overload this method """
        pass
    
        return pygame.sprite.collide_mask(self, self.engine.bob) or self.engine.IsCollidingWithOtherNPCs(self.engine.bob)
